package com.glsc.ngateway.common.base.domain.mysql.gateway.ldap;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.sql.Timestamp;

@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@Entity
@Table(name = "t_ldap_ehr_comp")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
public class LdapEhrComp {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    @Column(name = "oa_comp_id")
    private Integer oaCompId;
    @Column(name = "sub_company_name", nullable = true, length = 1000)
    private String subcompanyname;
    @Column(name = "sub_company_desc", nullable = true, length = 1000)
    private String subcompanydesc;
    @Column(name = "com_pany_id")
    private Integer companyid;
    @Column(name = "sub_sub_com_id")
    private Integer supsubcomid;
    @Column(name = "url", nullable = true, length = 400)
    private String url;
    @Column(name = "show_order")
    private Integer showorder;
    @Column(name = "canceled")
    private String canceled;
    @Column(name = "sub_company_code", nullable = true, length = 800)
    private String subcompanycode;
    @Column(name = "outkey", nullable = true, length = 800)
    private String outkey;
    @Column(name = "budge_tatuo_move_order")
    private Integer budgetatuomoveorder;
    @Column(name = "ecology_piniyin_search", nullable = true, length = 1000)
    private String ecologyPinyinSearch;
    @Column(name = "limit_users")
    private Integer limitusers;
    @Column(name = "t_level")
    private Integer tlevel;
    @Column(name = "created", nullable = true)
    private Timestamp created;
    @Column(name = "creater", nullable = true, precision = 0)
    private Integer creater;
    @Column(name = "modified", nullable = true)
    private Timestamp modified;
    @Column(name = "modifer")
    private Integer modifier;
}
